package 蒙特卡洛;

/**
 * @ClassName: testshape1
 * @Auther: Drawin
 * @Date: 2021/10/7 16:24
 * @Description:
 */

public class testshape1 {
    public static void main(String[] args) {
        Shape shape1=new Circle(3);
        System.out.println("shape1.getArea()="+shape1.getArea());
        Shape shape2=new Rectangle(5,4);
        System.out.println("shape2.getPerimeter()="+shape2.getPerimeter());
        Circle c1=(Circle) shape1;
        System.out.println("c1.getarea()="+c1.getArea());
    }
}
